package com.creatshare.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.creatshare.bean.Bug;

public interface BugDao {
	int deleteByPrimaryKey(@Param(value = "bugid") Integer bugid);

	int insert(Bug bug);

	Bug selectByPrimaryKey(@Param(value = "bugid") Integer bugid);

	int updateByPrimaryKey(Bug bug);

	int getBugRecordByPro(@Param(value = "projectid") int projectid);

	int getBugRecordByState(@Param("bugstate") int bugstate);

	int getBugRecord();

	List<Bug> getBugByState(@Param(value = "bugstate") int state, @Param(value = "startIndex") int startIndex,
			@Param(value = "pageSize") int pageSize);

	List<Bug> getBugByPro(@Param(value = "projectid") int projectid, @Param(value = "startIndex") int startIndex,
			@Param(value = "pageSize") int pageSize);

	List<Bug> getBugByLater(@Param(value = "startIndex") int startIndex, @Param(value = "pageSize") int pageSize);

}
